package com.ruicar.afs.jobadmin.core.route.strategy;

import com.ruicar.afs.jobadmin.core.route.ExecutorRouter;
import com.ruicar.afs.cloud.common.job.core.biz.model.ReturnT;
import com.ruicar.afs.cloud.common.job.core.biz.model.TriggerParam;

import java.util.List;

/**
 * The type ExecutorRouteFirst
 * <p>Description: </p>
 *
 * @author Fzero
 * @version 1.0
 * @date Created on 2020.06.13 14:17:10
 * @since 1.0
 */
public class ExecutorRouteFirst extends ExecutorRouter {

    /**
     * Route return t
     *
     * @param triggerParam trigger param
     * @param addressList  address list
     * @return the return t
     */
    @Override
    public ReturnT<String> route(TriggerParam triggerParam, List<String> addressList) {
        return new ReturnT<String>(addressList.get(0));
    }

}
